<script setup>
   import zhCN from 'ant-design-vue/es/locale/zh_CN';
  import dayjs from 'dayjs';
  import 'dayjs/locale/zh-cn';
import { useAppStore } from './store';
import { computed } from 'vue';
import '@/assets/icon-font/iconfont.css';
  dayjs.locale('zh-cn');
  const locale = zhCN
  const appStore = useAppStore();

  const colorPrimary = computed(()=>{
    return appStore.colorPrimary||'1890ff'
  })
</script>

<template>
<a-config-provider
    :locale="locale"
    :theme="{
       token: {
        colorPrimary:colorPrimary
       },
    }"
  >
    <router-view></router-view>
  </a-config-provider>
</template>

<style lang="scss">
html,
body,
#app {
  margin: 0;
  padding: 0;
}
.ant-pagination-options-size-changer{
  width: 100px;
}

</style>
